package com.hankol.material.adapter

import com.baselibrary.utils.GlideUtils
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.hankol.material.R
import com.hankol.material.bean.LevelOneBean


/**素材库 列表
 * @author: merbng
 * @time: 2021/10/15 10:33
 * @description:
 */
class TabMaterialAdapter : BaseQuickAdapter<LevelOneBean, BaseViewHolder>(R.layout.item_material_level_one) {

    override fun convert(helper: BaseViewHolder, item: LevelOneBean) {
        helper.setText(R.id.tv_title, "${item.title}")
                .setText(R.id.tv_cnt, "${item.proNum}")
        GlideUtils.loadImg_101(mContext, "${item.cover}", helper.getView(R.id.img_cover))
    }
}